﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text.Json.Serialization;
using System.Web;

namespace WebApi_SY.Models
{
    public class sli_quality_model
    {
        [Key]
        public int Id { get; set; }   //ID
        public int Fformid { get; set; }
        public string Fformno { get; set; } 
        public int Fpartid { get; set; }
        public string Fpartno { get; set; }//零件号
        public string Fpartname { get; set; }//零件名称
        public string Fqualityrank { get; set; }//质量等级
        public string Fmateril { get; set; }//材质
        public string Fsuppliername { get; set; }//供应商名称
        public int? Finspectionquantity { get; set; }//检查数量

        //public List<sli_quality_modelentry> Entries { get; set; } = new List<sli_quality_modelentry>();

        public virtual ICollection<sli_quality_modelentry> sli_quality_modelentry { get; set; }
    }

    public class sli_quality_modelentry
    {
        //public int sli_quality_modelId { get; set; } // 新增外键属性
        //public virtual sli_quality_model sli_quality_model { get; set; }
        [Key]
        public int Id { get; set; }
        public int Fformid { get; set; }
        public int Foptionid { get; set; }
        public string Foptionname { get; set; }
        public string Fitem { get; set; }   //检验项
        public string Fno { get; set; }
        public string Ftype { get; set; }
        public string Ftechnialrequirement { get; set; }  //技术要求
        public string Fmax { get; set; } //最大值
        public string Fmin { get; set; }//最小值 Factual
        public string Factual { get; set; }//最小值 
        public int?  Fqualitytools { get; set; }
        public string Fqualitytoolsname { get; set; }//检验工具名称
        public string Serialnumber { get; set; }  //序号
        public virtual sli_quality_model sli_quality_model { get; set; }
    }
}